package com.aerozhonghuan.oknet2.breakpoint;

import java.io.Serializable;

/**
 * 描述:下载任务实体类
 * 作者:zhangyonghui
 * 创建日期：2017/6/26 0026 on 下午 12:43
 */

public class DownloadTask implements Serializable {
    private long breakpoint;
    private String url;
    private String filePath;
    private String MD5;
    private boolean isCompelete;
    private int progress;

    public long getBreakpoint() {
        return breakpoint;
    }

    public void setBreakpoint(long breakpoint) {
        this.breakpoint = breakpoint;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public boolean isCompelete() {
        return isCompelete;
    }

    public void setCompelete(boolean compelete) {
        isCompelete = compelete;
    }

    public String getMD5() {
        return MD5;
    }

    public void setMD5(String MD5) {
        this.MD5 = MD5;
    }

    public int getProgress() {
        return progress;
    }

    public void setProgress(int progress) {
        this.progress = progress;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    public String toString() {
        return "DownloadTask{" +
                "breakpoint=" + breakpoint +
                ", url='" + url + '\'' +
                ", filePath='" + filePath + '\'' +
                ", MD5='" + MD5 + '\'' +
                ", isCompelete=" + isCompelete +
                ", progress=" + progress +
                '}';
    }
}
